package com.chuanke.ckfamily.dao.social.model;
import com.chuanke.ckfamily.dao.base.CkUtil;
import com.weijie.core.extend.FiledName;
import com.weijie.core.extend.IgnoreColumn;
import com.weijie.core.extend.TableName;
import com.weijie.core.model.BaseModel;
import com.weijie.core.util.DateUtils;

import java.io.Serializable;
import java.sql.Timestamp;
import java.text.Format;
import java.util.Date;

@TableName("cf_family")
public class Family extends BaseModel{
	private static final long serialVersionUID = 1043066640244547790L;
	// 群号(网易云信)
	private String tid;
	@FiledName("tid")
	public String getTid(){
		return this.tid;
	}
	public void setTid(String tid){
		 this.tid = tid;
	}

	// 群名称
	private String name;
	@FiledName("name")
	public String getName(){
		return this.name;
	}
	public void setName(String name){
		 this.name = name;
	}

	// 群主user_id
	private Long owner_user_id;
	@FiledName("owner_user_id")
	public Long getOwner_user_id() {
		return owner_user_id;
	}
	public void setOwner_user_id(Long owner_user_id) {
		this.owner_user_id = owner_user_id;
	}

	//群主user_no
	private String owner_user_no;
	@FiledName("owner_user_no")
	public String getOwner_user_no() {
		return owner_user_no;
	}
	public void setOwner_user_no(String owner_user_no) {
		this.owner_user_no = owner_user_no;
	}

	// 群主user_id
	private Long super_id;
	@FiledName("super_id")
	public Long getSuper_id(){
		return this.super_id;
	}
	public void setSuper_id(Long super_id){
		 this.super_id = super_id;
	}

	// 群公告
	private String announcement;
	@FiledName("announcement")
	public String getAnnouncement(){
		return this.announcement;
	}
	public void setAnnouncement(String announcement){
		 this.announcement = announcement;
	}
	
	private Timestamp announcement_time;
	@FiledName("announcement_time")
	public Timestamp getAnnouncement_time() {
		return announcement_time;
	}
	public void setAnnouncement_time(Timestamp announcement_time) {
		this.announcement_time = announcement_time;
	}
	private String announcement_timeStr;
	@IgnoreColumn
	public String getAnnouncement_timeStr() {
		if(this.announcement_time!=null){
			return DateUtils.format(new Date(this.announcement_time.getTime()),"yyyy/MM/dd HH:mm");
		}
		return "";
	}
	

	// 群描述
	private String intro;
	@FiledName("intro")
	public String getIntro(){
		return this.intro;
	}
	public void setIntro(String intro){
		 this.intro = intro;
	}

	// 群头像
	private String ficon;
	@FiledName("ficon")
	public String getFicon(){
		return this.ficon;
	}
	public void setFicon(String icon){
		 this.ficon = icon;
	}

	// 1：用户群 2：系统群
	private Integer type;
	@FiledName("type")
	public Integer getType(){
		return this.type;
	}
	public void setType(Integer type){
		 this.type = type;
	}
	//群成员最大数量
	private Integer fcapacity;
	@FiledName("fcapacity")
	public Integer getFcapacity() {
		return fcapacity;
	}
	public void setFcapacity(Integer fcapacity) {
		this.fcapacity = fcapacity;
	}

	//群成员当前数量
	private Integer mnum;
	@FiledName("mnum")
	public Integer getMnum() {
		return mnum;
	}
	public void setMnum(Integer mnum) {
		this.mnum = mnum;
	}

	// 群红包余额
	private Long balance;
	@FiledName("balance")
	public Long getBalance(){
		return this.balance;
	}
	public void setBalance(Long balance){
		 this.balance = balance;
	}

	//家族累计收益
	private Long family_income_sum;
	@FiledName("family_income_sum")
	public Long getFamily_income_sum() {
		return family_income_sum;
	}
	public void setFamily_income_sum(Long family_income_sum) {
		this.family_income_sum = family_income_sum;
	}
	
	private String family_income_sumStr;
	@IgnoreColumn
	public String getFamily_income_sumStr() {
		return CkUtil.formatMoney(this.family_income_sum);
	}

	//族长上线累计收益
	private Long super_income_sum;
	@FiledName("super_income_sum")
	public Long getSuper_income_sum() {
		return super_income_sum;
	}
	public void setSuper_income_sum(Long super_income_sum) {
		this.super_income_sum = super_income_sum;
	}
	
	private String super_income_sumStr;
	@IgnoreColumn
	public String getSuper_income_sumStr() {
		return CkUtil.formatMoney(this.super_income_sum);
	}
	
	//族长累计收益
	private Long owner_income_sum;
	@FiledName("owner_income_sum")
	public Long getOwner_income_sum() {
		return owner_income_sum;
	}
	public void setOwner_income_sum(Long owner_income_sum) {
		this.owner_income_sum = owner_income_sum;
	}
	private String owner_income_sumStr;
	@IgnoreColumn
	public String getOwner_income_sumStr() {
		return CkUtil.formatMoney(this.owner_income_sum);
	}
	
	//红包累计收益
	private Long packet_income_sum;
	@FiledName("packet_income_sum")
	public Long getPacket_income_sum() {
		return packet_income_sum;
	}
	public void setPacket_income_sum(Long packet_income_sum) {
		this.packet_income_sum = packet_income_sum;
	}
	
	private String packet_income_sumStr;
	@IgnoreColumn
	public String getPacket_income_sumStr() {
		return CkUtil.formatMoney(this.packet_income_sum);
	}

	private Timestamp update_time;
	@FiledName("update_time")
	public Timestamp getUpdate_time(){
		return this.update_time;
	}
	public void setUpdate_time(Timestamp update_time){
		 this.update_time = update_time;
	}

	private Timestamp create_time;
	@FiledName("create_time")
	public Timestamp getCreate_time(){
		return this.create_time;
	}
	public void setCreate_time(Timestamp create_time){
		 this.create_time = create_time;
	}
	
	//昨天排名
	private Integer y_rank;
	@FiledName("y_rank")
	public Integer getY_rank() {
		return y_rank;
	}
	public void setY_rank(Integer y_rank) {
		this.y_rank = y_rank;
	}

	private Long version;
	@IgnoreColumn
	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}
	
	private String create_family_tips;
	@IgnoreColumn
	public String getCreate_family_tips() {
		return create_family_tips;
	}
	public void setCreate_family_tips(String create_family_tips) {
		this.create_family_tips = create_family_tips;
	}

	
	
}